package org.example;

import java.util.ArrayList;

/**
 * @program: exper_code
 * @description:
 * @author: hlt
 * @create: 2023-10-21 15:13
 **/
public class School {
    private ArrayList<Department> departments;

    private ArrayList<Student> students;

    public School(ArrayList<Department> departments, ArrayList<Student> students) throws Exception {

        if (departments.size() <= 0){
            throw new Exception("学院必须由一到多个系组成！");
        }

        this.departments = departments;
        this.students = students;
    }
}
